package com.workerhelping.vo;

import com.workerhelping.enums.RecordStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AdminRecordVO implements Serializable {
    private Integer id;
    private String name;
    private String idNumber;
    private String creditCardNumbers;
    private Integer status;
    private String statusStr;
    private Integer workerId;

    public String getStatusStr() {
        return RecordStatusEnum.getStatusName(this.status);
    }
}
